/* 搬fontawesome的样式过来用 */

.iconfont {
  display: inline-block;
  width: 1.5em;
  text-align: center;
  font-size: inherit;
  text-rendering: auto;
}


/* 图标无限旋转 */

.iconfont--spin {
  -webkit-animation: iconfont--spin 2s infinite linear;
  animation: iconfont--spin 2s infinite linear;
}

@-webkit-keyframes iconfont--spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@keyframes iconfont--spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.u-icon {
  display: block;
  height: 16px;
  width: 16px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  &.u-icon-radio {
    background-image: url(../../imgs/icon_select_sex.png);
  }
  &.u-icon-radio-default {
    background-image: url(../../imgs/icon_select_sex_default.png);
  }
  &.u-icon-card-more {
    background-image: url(../../imgs/icon_card_more.png);
  }
  &.u-icon-card-ok {
    background-image: url(../../imgs/icon_card_ok.png);
  }
  &.u-icon-card-default {
    /* padding-left: 22px;
    height: 22px; */
    background-image: url(../../imgs/icon_card_default.png);
  }
  &.u-icon-edit {
    background-image: url(../../imgs/icon_more_default.png);
    &:hover,
    &.u-icon-edit-on {
      background-image: url(../../imgs/icon_more_ok.png);
    }
  }
  &.u-icon-checkbox-checked {
    padding-left: 20px;
    background-image: url(../../imgs/icon_select_ok.png);
  }
  &.u-icon-checkbox {
    padding-left: 20px;
    background-image: url(../../imgs/icon_select_default.png);
  }
  &.u-icon-add-18 {
    width: 18px;
    height: 18px;
    background-image: url(../../imgs/icon_add_18.png);
  }
  &.u-icon-cancle {
    background-image: url(../../imgs/icon_cancle_b.png);
  }
  &.u-icon-select-open {
    background-image: url(../../imgs/icon_select_open.png);
  }
  &.u-icon_pull {
    background-image: url(../../imgs/icon_pull.png);
  }
  &.u-icon-select-close {
    width: 12px;
    height: 12px;
    background-image: url(../../imgs/icon_select_close.png);
  }
  &.u-icon-delete {
    background-image: url(../../imgs/icon_delete.png);
  }
  &.u-icon_delete_green {
    width: 18px;
    height: 18px;
    background-image: url(../../imgs/icon_delete_green.png);
  }
  &.u-icon_keep_18 {
    width: 18px;
    height: 18px;
    background-image: url(../../imgs/icon_keep_18.png);
  }
  &.u-icon_close_18 {
    width: 18px;
    height: 18px;
    background-image: url(../../imgs/icon_close_18.png);
  }
  &.u-icon_write_18 {
    width: 18px;
    height: 18px;
    background-image: url(../../imgs/icon_write_18.png);
  }
  &.u-icon_write {
    width: 18px;
    height: 18px;
    background-image: url(../../imgs/icon_write.png);
  }
  &.u-icon_phone_22 {
    width: 14px;
    height: 21px;
    background-image: url(../../imgs/icon_phone_22.png);
  }
  &.u-icon_warn_25 {
    width: 25px;
    height: 25px;
    background-image: url(../../imgs/icon_warn_25.png);
  }
}

label.u-icon {
  padding-left: 20px;
  width: auto;
  height: auto;
  min-height: 16px;
  background-position: left center;
}
